package net.techwatch.gwt.mvp.client;

import com.google.gwt.event.dom.client.HasKeyUpHandlers;
import com.google.gwt.event.dom.client.KeyUpHandler;
import com.google.gwt.event.shared.GwtEvent;
import com.google.gwt.event.shared.HandlerRegistration;

public class MockHasKeyUpHandlers implements HasKeyUpHandlers {

	KeyUpHandler lastHandler;
	
	@Override
	public HandlerRegistration addKeyUpHandler(KeyUpHandler handler) {
		lastHandler = handler;
		return new HandlerRegistration() {
		
			@Override
			public void removeHandler() {
		
			}
		};
	}

	@Override
	public void fireEvent(GwtEvent<?> event) {

	}

}
